var cf = cf || {};

cf.cart = {

add: function(productId, amount, success)
{
	$.post(
		'/cf/call/cart.add',
		{'productId':productId, 'amount':amount},
		function (data) { success(data); },
		'json'
	);
},

list: function(success)
{
	$.post(
		'/cf/call/cart.getList',
		function (data) { success(data); },
		'json'
	);
}

};